
package com.asp.aspchain.core.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;


import org.apache.commons.lang3.builder.ReflectionToStringBuilder;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 *
 * @author aspire
 * @Date 2018-12-06 09:35
 */
@TableName("t_abc_asset")
public class AssetModel extends Model<AssetModel> {

    private static final long serialVersionUID = 1L;

    /**
     * 资产id
     * 
     */
    @TableId(value = "assetid", type = IdType.INPUT)
    private String assetid;
    /**
     * 创建时间
     * 
     */
    private Date createtime;
    /**
     * 资产内容
     * 
     */
    private String asset;

    public String getAssetid() {
           return assetid;
    }

    public void setAssetid(String assetid) {
     	this.assetid = assetid;
    }

    public Date getCreatetime() {
           return createtime;
    }

    public void setCreatetime(Date createtime) {
     	this.createtime = createtime;
    }

    public String getAsset() {
           return asset;
    }

    public void setAsset(String asset) {
     	this.asset = asset;
    }

    @Override
    protected Serializable pkVal() {
           return this.assetid;
    }

    @Override
    public String toString() {
        return ReflectionToStringBuilder.toString(this);
    }
}
